package com.dongzili.common.disruptor.handler;

import com.dongzili.common.disruptor.entity.MessageEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

// 处理消息类型的策略
@Slf4j
@Component
public class MessageTypeHandler implements EventHandler<String> {
    
    @Override
    public void send(MessageEvent<String> event) {
        log.info("sequence:{} 处理消息类型事件: {}",event.getSequence(), event);
        // 处理消息的具体逻辑
    }

    @Override
    public Class<?> getTypeParam() {
        return String.class;
    }
}
